<div class="modal" ng-controller="FlowableMessageDefinitionsPopupCtrl">
  <div class="modal-dialog modal-wide">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
        <h2>{{ 'PROPERTY.PROPERTY.EDIT.TITLE' | translate }} "{{ property.title | translate }}"</h2>
      </div>

      <div class="modal-body">
        <!-- <div class="row row-no-gutter">
          <div class="col-xs-8">
            <div ng-if="translationsRetrieved" class="kis-listener-grid" ui-grid="gridOptions" ui-grid-selection></div>
            <div class="pull-right">
              <div class="btn-group">
                <a
                  class="btn btn-icon btn-lg"
                  rel="tooltip"
                  data-title="{{ ACTION.ADD | translate }}"
                  data-placement="bottom"
                  data-original-title=""
                  title=""
                  ng-click="addNewMessageDefinition()"
                  ><i class="glyphicon glyphicon-plus"></i
                ></a>
                <a
                  class="btn btn-icon btn-lg"
                  rel="tooltip"
                  data-title="{{ ACTION.REMOVE | translate }}"
                  data-placement="bottom"
                  data-original-title=""
                  title=""
                  ng-click="removeMessageDefinition()"
                  ><i class="glyphicon glyphicon-minus"></i
                ></a>
              </div>
            </div>
          </div>

          <div class="col-xs-4" ng-show="selectedMessageDefinition">
            <div class="form-group">
              <label>{{ 'PROPERTY.MESSAGEDEFINITIONS.ID' | translate }}</label>
              <input type="text" class="form-control" ng-model="selectedMessageDefinition.id" />
            </div>

            <div class="form-group">
              <label>{{ 'PROPERTY.MESSAGEDEFINITIONS.NAME' | translate }}</label>
              <input type="text" class="form-control" ng-model="selectedMessageDefinition.name" />
            </div>
          </div>
        </div> -->
        <ul class="table-title three-col">
            <li style="text-indent: 38px;">{{ 'PROPERTY.MESSAGEDEFINITIONS.ID' | translate }}</li>
            <li>{{ 'PROPERTY.MESSAGEDEFINITIONS.NAME' | translate }}</li>
            <li style="text-align: center;">操作</li>
        </ul>
        <ul class="value-table value-three-col">
          <li ng-repeat="selectedMessageDefinition in messageDefinitions" id="$index">
              <div>
                <span>
                  <i class="iconfont icon-edit"></i>
                </span>
                <input type="text" class="form-control del-border" style="width:80%;" ng-model="selectedMessageDefinition.id" />
              </div>
              <div>
                <input type="text" class="form-control del-border" ng-model="selectedMessageDefinition.name" />
              </div>
              <div>
                <span title="{{ 'ACTION.REMOVE' | translate }}"
                  ng-click="removeMessageDefinition(selectedMessageDefinition)">
                  <i class="iconfont icon-reduce_1"></i>
                </span>
                <span ng-if="$index == messageDefinitions.length-1" title="{{ 'ACTION.ADD' | translate }}"
                  ng-click="addNewMessageDefinition()">
                  <i class="iconfont icon-add_1"></i>
                </span>
              </div>
          </li>
        </ul>
        <div ng-click="addNewMessageDefinition()" ng-if="!messageDefinitions.length" class="add-data-property">没有配置消息定义，点击此处添加</div>
            
      </div>

      <div class="modal-footer">
          <button ng-click="save()" class="btn save-btn" translate>ACTION.SAVE</button>
          <button ng-click="cancel()" class="btn close-btn" translate>GENERAL.ACTION.CLOSE</button>  
      </div>
    </div>
  </div>
</div>
